home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / glass / glass.lha / GLASS / tmc / makefile.tos < prev    next >
Makefile  |  1990-11-02  |  5KB  |  229 lines

  1. # tm C support make file
  2.  
  3. VERSION = 4
  4.  
  5. # debugging flags
  6. DBUG        = -DSTAT
  7. LINTDBUG    = -DSTAT $(SYSCDBUGFLAGS)
  8.  
  9. LDFLAGS          = $(SYSCDBUGFLAGS) -Wl-S=10000
  10.  
  11. # C compilation flags
  12. CFLAGS = $(SYSCDBUGFLAGS) -I$(IDIR) $(DBUG) -D$(SYS)
  13.  
  14. LINTFLAGS = $(SYSLINTFLAGS) -DLINT -I$(IDIR) $(LINTDBUG) -D$(SYS)
  15.  
  16. # Some names of programs
  17. TM  = tm
  18. LINKER = cc
  19.  
  20. TMCLIB = $(LDIR)\tmclib.lib
  21. TMCLINTLIB = $(LDIR)\llib-ltmc.ln
  22.  
  23. LIBS = $(TMCLIB) $(CLIBLOC)
  24.  
  25. LINTLIBS = $(TMCLINTLIB)
  26.  
  27. MAKEFILE = Makefile
  28.  
  29. DOC    = README CHANGES
  30.  
  31. DEMOFILES =
  32.  
  33. JUNK = tmp core makelog lltest altest testerr testout alutest llutest
  34.  
  35. TESTFILES = \
  36.     test.ds \
  37.     alokerr alokout \
  38.     altestin altest.c alspec.t alcode.ct alcode.ht \
  39.     aluokerr aluokout \
  40.     alutest.c aluspec.t alucode.ct alucode.ht \
  41.     llokerr llokout \
  42.     lltestin lltest.c llspec.t llcode.ct llcode.ht \
  43.     lluokerr lluokout \
  44.     llutest.c lluspec.t llucode.ct llucode.ht
  45.  
  46. DISTFILES = $(TMMODULES) $(TESTFILES) $(DOC) $(MAKEFILE)
  47.  
  48. TMMODULES     = cal.ct cal.ht alneed.t calu.ct calu.ht aluneed.t \
  49.                 cll.ct cll.ht llneed.t cllu.ct cllu.ht lluneed.t
  50.  
  51.  
  52. LLUTMSRCS     = llucode.c 
  53.  
  54. LLUTMHDRS     = llucode.h
  55.  
  56. ALUTMHDRS      = alucode.h
  57.  
  58. ALUTMSRCS      = alucode.c
  59.  
  60. LLUTESTOBJS   = llutest.o llucode.o
  61.  
  62. ALTESTOBJS    = altest.o alcode.o
  63.  
  64. ALUTESTOBJS   = alutest.o alucode.o
  65.  
  66. LLUTESTSRCS   = llutest.c llucode.c llucode.h
  67.  
  68. ALUTESTSRCS   = alutest.c alucode.c alucode.h
  69.  
  70. OBJS = alucode.o alutest.o llucode.o llutest.o
  71.  
  72. # These sources are generated from tm templates.
  73. TMOUT = alucode.c alucode.h llucode.c llucode.h
  74.  
  75. #++ make module local start, do NOT touch this line. ++
  76. # Installation dependent make variables.
  77. # This configuration is for 'duteela'.
  78.  
  79. # full path of the ESPRIT environment
  80. ESPRITDIR = c:
  81.  
  82. #  BDIR     : bin directory
  83. #  IDIR     : include directory
  84. #  LDIR     : library directory
  85. BDIR = $(ESPRITDIR)\bin
  86. IDIR = $(ESPRITDIR)\include
  87. LDIR = $(ESPRITDIR)\lib
  88.  
  89. FULLDS = $(ESPRITDIR)\ds\fullglass.ds
  90. KERNDS = $(ESPRITDIR)\ds\kernglass.ds
  91. NFULLDS = $(ESPRITDIR)\ds\nfullgl.ds
  92. NKERNDS = $(ESPRITDIR)\ds\nkerngl.ds
  93. DRAWDS = $(ESPRITDIR)\ds\draw.ds
  94.  
  95. #  HOSTNAME : name of installation machine.
  96. HOSTNAME=atariST
  97.  
  98. # SYS     : name of operating system or machine type
  99. #     BSD    For generic BSD systems
  100. #     HPUX    For all HP-UX systems
  101. #     SUN    For all SUN systems
  102. #     APOLLO    For all Apollo systems
  103. SYS = MWCST
  104.  
  105. # CLIBLOC : required C libraries
  106. CLIBLOC =
  107. LINTLIBLOC =
  108. PLIBLOC =
  109.  
  110. # CBADADR : address that will cause a core-dump if read or written.
  111. CBADADR = 0
  112.  
  113. SYSCFLAGS = -Wc-A
  114. SYSCPROFFLAGS = -G
  115. SYSCDBUGFLAGS = -g -Wc-A
  116. SYSLINTFLAGS =
  117. SYSPFLAGS =
  118.  
  119. # Collection of host dependent make rules.
  120.  
  121. ### libinstall ###
  122. # MODULE    - module to install
  123. libinstall:
  124.     cp $(MODULE) $(LDIR)\$(MODULE)
  125.  
  126. ### includeinstall ###
  127. # MODULE    - module to install
  128. includeinstall:
  129.     cp $(MODULE) $(IDIR)\$(MODULE)
  130.  
  131. ### maninstall ###
  132. # MAN        - manual page to install
  133. maninstall:
  134.     cp $(MAN) \usr\man\manl
  135.  
  136. ### bininstall ###
  137. # MODULE    - module to install
  138. bininstall:
  139.     cp $(MODULE) $(BDIR)\$(MODULE)
  140.     strip $(BDIR)\$(MODULE)
  141.  
  142. ### arlibinstall ###
  143. # MODULE    - module to install
  144. arlibinstall:
  145.     cp $(MODULE) $(LDIR)\$(MODULE)
  146. #++ make module local end, do NOT touch this line. ++
  147.  
  148. help :
  149.     @echo " Possible make targets:"
  150.     @echo "all        Create local running programs."
  151.     @echo "clean        Free disk space."
  152.     @echo "distfiles    List distribution files."
  153.     @echo "install        Install relevant files."
  154.     @echo "setup        Adapt sources to local situation."
  155.     @echo "test        Run tests."
  156.  
  157. #
  158. all: llutest alutest
  159.  
  160. # Add rules for the programs themselves here.
  161.  
  162. test : llutestrun alutestrun
  163.  
  164. alutest:     $(ALUTESTOBJS)
  165.     $(LINKER) $(LDFLAGS) $(ALUTESTOBJS) $(LIBS) -o alutest
  166.  
  167. alutestrun: alutest
  168.     -.\alutest < alutesti 2>testerr > testout
  169.     diff testout aluokout
  170.     diff testerr aluokerr
  171.  
  172. alulint: $(ALUTESTSRCS)
  173.     lint $(LINTFLAGS) $(ALUTESTSRCS) $(LINTLIBS) > alulint
  174.  
  175. aluinstall : aluneed.t calu.ct calu.ht
  176.     cat aluneed.t calu.ct > $(LDIR)\calu.ct
  177.     cat aluneed.t calu.ht > $(LDIR)\calu.ht
  178.  
  179. llutest:     $(LLUTESTOBJS)
  180.     $(LINKER) $(LDFLAGS) $(LLUTESTOBJS) $(LIBS) -o llutest
  181.  
  182. llutestrun: llutest
  183.     -.\llutest < llutesti > testout 2> testerr
  184.     diff testout lluokout
  185.     diff testerr lluokerr
  186.  
  187. llulint: $(LLUTESTSRCS)
  188.     lint $(LINTFLAGS) $(LLUTESTSRCS) $(LINTLIBS) > llulint
  189.  
  190. lluinstall : lluneed.t cllu.ct cllu.ht
  191.     cat lluneed.t cllu.ct > $(LDIR)\cllu.ct
  192.     cat lluneed.t cllu.ht > $(LDIR)\cllu.ht
  193.  
  194. install: lluinstall aluinstall
  195.  
  196. lint : alulint llulint
  197.  
  198. clean:
  199.     rm $(JUNK) $(OBJS) $(TMOUT)
  200.  
  201. distfiles:
  202.     @echo $(DISTFILES) | tr ' ' '\012'
  203.  
  204. setup:
  205.     modmake local ..\make.local $(MAKEFILE)
  206.  
  207. # Non-standard make rules
  208.  
  209. depend: $(LLUTMSRCS) $(LLUTMHDRS) $(ALUTMHDRS) $(ALUTMSRCS)
  210.     mkmf -I$(IDIR) -f $(MAKEFILE)
  211.  
  212. alucode.c : alucode.ct calu.ct aluspec.t test.ds aluneed.t
  213.     $(TM) test.ds alucode.ct > alucode.c
  214.  
  215. alucode.h : alucode.ht calu.ht aluspec.t test.ds aluneed.t
  216.     $(TM) test.ds alucode.ht > alucode.h
  217.  
  218. llucode.c : llucode.ct cllu.ct lluspec.t test.ds lluneed.t
  219.     $(TM) test.ds llucode.ct > llucode.c
  220.  
  221. llucode.h : llucode.ht cllu.ht lluspec.t test.ds lluneed.t
  222.     $(TM) test.ds llucode.ht > llucode.h
  223.  
  224. ###
  225. alucode.o: alucode.h
  226. alutest.o: alucode.h
  227. llucode.o: llucode.h
  228. llutest.o: llucode.h
  229.